﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace BTN04.DTO
{
    public static class CurrentContext
    {

     
        public static NguoiDungDTO NguoiDungDTO
        {
            get { return HttpContext.Current.Session["tendangnhap"] as NguoiDungDTO; }
            set { HttpContext.Current.Session["tendangnhap"] = value; }
        }
        //Lay gio hang cua user
        public static GioHang Cart
        {
            get { return CurrentContext.NguoiDungDTO.Cart; }
        }
    }
}
